home *** CD-ROM | disk | FTP | other *** search
- *** orig/make-3.71/default.c Thu Jul 21 01:29:54 1994
- --- src/make-3.71/default.c Thu Jul 21 01:32:38 1994
- ***************
- *** 23,28 ****
- --- 23,34 ----
- #include "commands.h"
- #include "variable.h"
-
- + /* Define GCC_IS_NATIVE if gcc is the native development environment
- + on your system (gcc/bison/flex vs cc/yacc/lex) */
- +
- + #ifdef __MSDOS__
- + #define GCC_IS_NATIVE
- + #endif
-
- /* This is the default list of suffixes for suffix rules.
- `.s' must come last, so that a `.o' file will be made from
- ***************
- *** 138,144 ****
- --- 144,154 ----
- "@$(RM) $*.c\n $(LEX.l) $< > $*.c\n$(LINT.c) -i $*.c -o $@\n $(RM) $*.c",
-
- ".y.c",
- + #ifdef __MSDOS__
- + "$(YACC.y) $< \n mv -f y_tab.c $@",
- + #else
- "$(YACC.y) $< \n mv -f y.tab.c $@",
- + #endif
- ".l.c",
- "@$(RM) $@ \n $(LEX.l) $< > $@",
-
- ***************
- *** 203,210 ****
- --- 213,225 ----
- "ARFLAGS", "rfv",
- #endif
- "AS", "as",
- + #ifdef GCC_IS_NATIVE
- + "CC", "gcc",
- + "CXX", "gcc",
- + #else
- "CC", "cc",
- "CXX", "g++",
- + #endif
-
- /* This expands to $(CO) $(COFLAGS) $< $@ if $@ does not exist,
- and to the empty string if $@ does exist. */
- ***************
- *** 237,243 ****
- --- 252,262 ----
- #endif /* Cray. */
- "GET", SCCS_GET,
- "LD", "ld",
- + #ifdef GCC_IS_NATIVE
- + "LEX", "flex",
- + #else
- "LEX", "lex",
- + #endif
- "LINT", "lint",
- "M2C", "m2c",
- #ifdef pyr
- ***************
- *** 250,256 ****
- "PC", "pc",
- #endif /* CRAY. */
- #endif /* pyr. */
- ! "YACC", "yacc", /* Or "bison -y" */
- "MAKEINFO", "makeinfo",
- "TEX", "tex",
- "TEXI2DVI", "texi2dvi",
- --- 269,279 ----
- "PC", "pc",
- #endif /* CRAY. */
- #endif /* pyr. */
- ! #ifdef GCC_IS_NATIVE
- ! "YACC", "bison -y",
- ! #else
- ! "YACC", "yacc",
- ! #endif
- "MAKEINFO", "makeinfo",
- "TEX", "tex",
- "TEXI2DVI", "texi2dvi",
-